package com.wise.service.cms.content.categoryindustry;

import cn.hutool.core.bean.BeanUtil;
import com.wise.summer.v1.cms.content.category.UpdateCategoryById;
import com.wise.summer.v1.cms.content.categoryindustry.UpdateCategoryIndustryById;
import org.springframework.stereotype.Service;
import org.summerframework.model.SummerService;
import org.summerframework.model.SummerServiceBean;

/**
 * @author shaoming
 * @date 2019-09-10
 */
@Service
@SummerService
public class UpdateCategoryIndustryByIdService implements SummerServiceBean<UpdateCategoryIndustryById> {

	@Override
	public void sum(UpdateCategoryIndustryById summer) {
		UpdateCategoryById updateCategoryById = new UpdateCategoryById();
		BeanUtil.copyProperties(summer, updateCategoryById);
		updateCategoryById.setCategoryType(1);
		updateCategoryById.setType("2");
		updateCategoryById.sum();
		summer.setSummerResult(updateCategoryById.getSummerResult());
	}



}
